import request from '@/utils/request'

// 查询k指标设置列表
export function listSalarySetup(query) {
  return request({
    url: '/wms/salarySetup/list',
    method: 'get',
    params: query
  })
}

// 查询k指标设置详细
export function getSalarySetup(id) {
  return request({
    url: '/wms/salarySetup/' + id,
    method: 'get'
  })
}

// 新增k指标设置
export function addSalarySetup(data) {
  return request({
    url: '/wms/salarySetup',
    method: 'post',
    data: data
  })
}

// 修改k指标设置
export function updateSalarySetup(data) {
  return request({
    url: '/wms/salarySetup',
    method: 'put',
    data: data
  })
}

// 删除k指标设置
export function delSalarySetup(id) {
  return request({
    url: '/wms/salarySetup/' + id,
    method: 'delete'
  })
}
